﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace ShopeeSdk
{
    public abstract class ShopeeResponse
    {
        [JsonProperty("error")]
        public string Error { get; set; }

        [JsonProperty("msg")]
        public string Msg { get; set; }

        [JsonProperty("request_id")]
        public string RequestId { get; set; }

        public bool IsError => !string.IsNullOrEmpty(Error);
    }
}
